package com.itheima.neibulei5;

public class Test {

}
class Outer {
    int a = 10;

    public void sing() {
        int c=30;
        class Inner {
            int b = 20;
            public void dance() {
                System.out.println(a);
                System.out.println(c);
                System.out.println("inner...dance");
            }
        }
        Inner inner = new Inner();
        System.out.println(inner.b);
        inner.dance();
        System.out.println("outer...sing");
    }


}
